package cn.stylefeng.guns.modular.app.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * 移库和托
 */
@TableName("moving_palletsmerge")
@Data
public class MovingPalletsmerge implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 源仓库id
     */
    @TableField("sourcewarehouse_id")
    private Long sourcewarehouseId;

    /**
     * 源仓库名称
     */
    @TableField("sourcewarehouse_name")
    private String sourcewarehouseName;

    /**
     * 源库区id
     */
    @TableField("sourcearea_id")
    private Long sourceareaId;

    /**
     * 源库区编号
     */
    @TableField("sourcearea_number")
    private String sourceareaNumber;

    /**
     * 源库位id
     */
    @TableField("sourcepositionId")
    private Long sourcepositionId;

    /**
     * 源库位编号
     */
    @TableField("sourceposition_number")
    private String sourcepositionNumber;

    /**
     * 源托盘id
     */
    @TableField("sourcetray_id")
    private Long sourcetrayId;

    /**
     * 源托盘编号
     */
    @TableField("sourcetray_number")
    private String sourcetrayNumber;

    /**
     * 源数量
     */
    @TableField("sourcenum")
    private String sourcenum;

    /**
     * 目的仓库id
     */
    @TableField("aimwarehouse_id")
    private Long aimwarehouseId;

    /**
     * 目的仓库名称
     */
    @TableField("aimwarehouse_name")
    private String aimwarehouseName;

    /**
     * 目的库区id
     */
    @TableField("aimarea_id")
    private Long aimareaId;

    /**
     * 目的库区编号
     */
    @TableField("aimarea_number")
    private String aimareaNumber;

    /**
     * 目的库位id
     */
    @TableField("aimpositionId")
    private Long aimpositionId;

    /**
     * 目的库位编号
     */
    @TableField("aimposition_number")
    private String aimpositionNumber;

    /**
     * 目的托盘id
     */
    @TableField("aimtray_id")
    private Long aimtrayId;

    /**
     * 目的托盘编号
     */
    @TableField("aimtray_number")
    private String aimtrayNumber;

    /**
     * 目的数量
     */
    @TableField("aimnum")
    private String aimnum;

    /**
     * 种类
     */
    @TableField("typr")
    private String typr;

    /**
     * 商品
     */
    @TableField("goods_name")
    private String goodsName;
    
    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;
    
    /**
     * 商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;
    
    /**
     * 货号
     */
    @TableField("goods_no")
    private String goodsNo;

    /**
     * 备注
     */
    @TableField("nodes")
    private String nodes;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 创建用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 修改用户
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    @Override
    public String toString() {
        return "MovingPalletsmerge{" +
        "id=" + id +
        ", sourcewarehouseId=" + sourcewarehouseId +
        ", sourcewarehouseName=" + sourcewarehouseName +
        ", sourceareaId=" + sourceareaId +
        ", sourceareaNumber=" + sourceareaNumber +
        ", sourcepositionId=" + sourcepositionId +
        ", sourcepositionNumber=" + sourcepositionNumber +
        ", sourcetrayId=" + sourcetrayId +
        ", sourcetrayNumber=" + sourcetrayNumber +
        ", sourcenum=" + sourcenum +
        ", aimwarehouseId=" + aimwarehouseId +
        ", aimwarehouseName=" + aimwarehouseName +
        ", aimareaId=" + aimareaId +
        ", aimareaNumber=" + aimareaNumber +
        ", aimpositionId=" + aimpositionId +
        ", aimpositionNumber=" + aimpositionNumber +
        ", aimtrayId=" + aimtrayId +
        ", aimtrayNumber=" + aimtrayNumber +
        ", aimnum=" + aimnum +
        ", typr=" + typr +
        ", nodes=" + nodes +
        ", deliverId=" + deliverId +
        ", deptId=" + deptId +
        ", version=" + version +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", createUser=" + createUser +
        ", updateUser=" + updateUser +
        ", goodsId=" + goodsId +
        ", goodsName=" + goodsName +
        ", goodsNumber=" + goodsNumber +
        "}";
    }
}
